package com.ruoyi.partybuilding.domain;

import com.easy.query.core.annotation.EasyWhereCondition;
import com.easy.query.core.annotation.Table;
import com.ruoyi.partybuilding.common.EQuery.CU2Entity;
import com.ruoyi.partybuilding.common.EQuery.ICreatorIdEntity;
import com.ruoyi.partybuilding.common.EQuery.IDeptEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.*;
/**
 * 新闻栏目对象 pb_news_type
 * 
 * @author he-liangliang@outlook.com
 * @date 2024-11-27
 */

@Table("pb_news_type")
@Data
public class NewsType extends CU2Entity.LongId implements IDeptEntity
{
    private static final long serialVersionUID = 1L;


    /** 栏目名称 ; */
    @ApiModelProperty(value = "栏目名称")
    @EasyWhereCondition
    @Excel(name = "栏目名称")
    private String name;

    /** 父级 ; */
    @ApiModelProperty(value = "父级")
    @Excel(name = "父级")
    private Long parentId;

    /** 排序 ; */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Long sort;

    /** 部门id ; */
    @EasyWhereCondition(type = EasyWhereCondition.Condition.EQUAL)
    @ApiModelProperty(value = "部门id")
    @Excel(name = "部门id")
    private Long deptId;

    @ApiModelProperty(value = "备注")
    String remark;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("parentId", getParentId())
            .append("remark", getRemark())
            .append("sort", getSort())
            .append("deptId", getDeptId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
